
isNum = False

while not isNum:
	isNum = True
	try:
		num = int(input("enter a number : "));
	except ValueError:
		print "I said a number!"
		isNum = False
	except NameError:
		print "I said a number!"
		isNum = False